package com.easybacklog.client.repositoryLogin;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.PopupPanel;

/**
 * 
 * @UserInterface
 */
public class ButtonClose extends HTML {

	public ButtonClose(final PopupPanel popup) {

		this.setHTML("<a href='#'><img src='images/close.gif' title='Close Window'></a>");

		this.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {

				popup.hide();
			}
		});
	}
}
